<?php

class Madmin extends CI_Model {

    function madmin() {
        parent::__construct();
    }

}

function releaseAllUsers($id = "") {
    $dbconn = $this->load->database("default", TRUE);
    $data = array("is_login" => 0);
//    $this->db->trans_begin();
    $dbconn->update("t_mtr_user", array("is_login" => 0));
//    if ($this->db->trans_status() === FALSE) {
//        $this->db->trans_rollback();
//    } else {
//        $this->db->trans_commit();
//    }
}

function setReleaseAllUsers() {
    $dblokal = $this->load->database("default", TRUE);
    $dblokal->query("UPDATE t_mtr_user SET is_login=0");
}

?>